package com.hmys.api.mapper;

import com.hmys.api.model.WebUser;
import com.hmys.api.model.WebUserBasics;
import com.hmys.api.model.WebUserInvest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface WebUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(WebUser record);

    int insertSelective(WebUser record);

    WebUser selectByPrimaryKey(Long userId);

    WebUser selectByPhone(String phone);

    int updateByPrimaryKeySelective(WebUser record);

    int updateByPrimaryKey(WebUser record);

    WebUserBasics selectBasicsByPrimaryKey(Long userId);

    WebUserInvest selectInvestByPrimaryKey(Long userId);

    int updateInvestByPrimaryKey(WebUserInvest record);

    int updateBasicsByPrimaryKey(WebUserBasics record);

    int updatePhotoByPrimaryKey(WebUser record);

    String selectPhotoByPrimaryKey(Long userId);

}